package com.yfp.goods.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品详细图片视频表(GoodsDetailImg)实体类
 *
 *
 * @since 2023-12-25 17:29:39
 */
@Schema(title = "商品详细图片视频")
public class GoodsDetailImg implements Serializable {
    private static final long serialVersionUID = -11323460428465837L;
    private Long id;

    /**
     * 商品id
     */
    @Schema(title = "商品id")
    private String goodsId;
    /**
     * 资源id
     */
    @Schema(title = "资源id")
    private String resourceId;
    /**
     * 创建时间
     */
    @Schema(title = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 图片类型 1-封面图 2-详细图
     */
    @Schema(title = "图片类型 1-封面图 2-详细图")
    private Integer imgType;
    /**
     * 资源类型 1-图片 2-视频
     */
    @Schema(title = "资源类型 1-图片 2-视频")
    private Integer resourceType;

    @Schema(title = "资源url")
    private String resourceUrl;

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getImgType() {
        return imgType;
    }

    public void setImgType(Integer imgType) {
        this.imgType = imgType;
    }

    public Integer getResourceType() {
        return resourceType;
    }

    public void setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
    }

}

